package com.estate.common.core.domain.model.listing;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Address {
    @JsonProperty("street_number")
    private String streetNumber;

    @JsonProperty("street_name")
    private String streetName;

    private String suburb;
    private String state;
    private String postcode;

    @JsonProperty("unit_number")
    private String unitNumber;
}
